﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace PracticeChart.Popups
{
    public partial class SearchPatients : Form
    {
        Patient pt;
        public SearchPatients()
        {
            InitializeComponent();
        }
        public SearchPatients(Patient p)
        {
            InitializeComponent();
            pt = p;
        }

        private void searchButton_Click(object sender, EventArgs e)
        {
            // search our database for patients and display data

            // if no patient found then display no records found and offer to add new patient
            norecordsPanel.Visible = true;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            NewPatient np = new NewPatient(pt.MainWindow);
            np.Activate();
            np.Show();
            this.Close();
        }
    }
}
